import request from '@/utils/request'
export const login = async(data) => await request({
  url: '/user/adminLogin',
  method: 'post',
  data
})

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}

export const userList = async(data) => await request({
  url: '/user/list',
  method: 'post',
  data
})
